<?php
      if (isset($_REQUEST["gender"]))  { $gender=$_REQUEST["gender"];
	  
	  $alder=$_REQUEST["alder"]; $gift=$_REQUEST["gift"];
 $pris=500; if ($gender=="male" && $alder<=24 && $gift="no") { $pris=$pris+1500;
      }
          if ($gender=="female") { $pris=$pris-200;
      }
	      if ($gender=="male" && $gift=="yes") { $pris=$pris-200;
	  }
	      if ($alder>=46 && $alder<=64) { $pris=$pris-100;
	  }
	echo $pris;     } 
?>

<form action="forsikringsberegner.php">
    gender: <input type="text" name="gender" />
    alder: <input type="text" name="alder" />
    gift: <input type="text" name="gift" />
    <input type="submit" />
</form>